package web

import (
	"github.com/kataras/iris/v12"
	"iris_blog/utils"
)

type Setting struct {
}

// 首页的分页列表
func (a Setting) GetAll(i iris.Context) {
	results := map[string]interface{}{}
	utils.DB.Raw("select * from setting where id = 1 ").Find(&results)
	i.JSON(map[string]interface{}{
		"code": 20000,
		"data": results,
	})

}
